package com.runa.rccprotocol.dto.param;

/**
 * 户通断写阀门锁 ly
 */
public class ValveLock extends Param{

    private byte valveLockStatus;

    private byte valveLockOpenLevel;

    public ValveLock(int lock, int open) {
        valveLockStatus = (byte) lock;
        valveLockOpenLevel = (byte) open;
    }

    public byte getValveLockStatus() {
        return valveLockStatus;
    }

    public void setValveLockStatus(byte valveLockStatus) {
        this.valveLockStatus = valveLockStatus;
    }

    public byte getValveLockOpenLevel() {
        return valveLockOpenLevel;
    }

    public void setValveLockOpenLevel(byte valveLockOpenLevel) {
        this.valveLockOpenLevel = valveLockOpenLevel;
    }

    public byte[] getBytes() {
        return new byte[]{valveLockStatus, valveLockOpenLevel};
    }
}
